import {
	PageView
} from '@/layouts';

export default {
	path: '/news',
	name: 'news',
	redirect: '/news/List',
	component: PageView,
	meta: {
		title: '信息管理',
		icon: 'message',
		permission: [ 'information' ]
	},
	children: [{
		path: '/news/columnList',
		name: 'columnList',
		component: () => import('@/views/news/columnList'),
		meta: {
			title: '栏目列表',
			permission: [ 'column_list' ]
		},
	},
	{
		path: '/news/List',
		name: 'NewsListForm',
		component: () => import('@/views/news/List'),
		meta: {
			title: '信息列表',
			permission: [ 'news_list' ]
		},
	},
	{
		path: '/news/Add',
		name: 'NewsAddForm',
		component: () => import('@/views/news/Add'),
		meta: {
			title: '添加信息',
			permission: [ 'news_add' ]
		},
		hidden: true,
	},
	
	{
		path: '/news/edit/:id',
		name: 'NewseditForm',
		component: () => import('@/views/news/Add'),
		meta: {
			title: '编辑信息',
			permission: [ 'news_update' ]
		},
		hidden: true,
	},
	{
		path: '/news/detail/:id',
		name: 'NewsDetail',
		component: () => import('@/views/news/detail'),
		meta: {
			title: '信息详情',
			permission: [ 'news_detail' ]
		},
		hidden: true,
	},
	],
};
